document.QueryParam = function(param) {
	var uri = window.location.search;
	var re = new RegExp("" + param + "=([^&?]*)", "ig");
	return ((uri.match(re)) ? (uri.match(re)[0].substr(param.length + 1)) : null);
};